const nums = [32,94,128,83,86,84,6,2654,71]

function getBigNum(nums){
    nums.sort((a,b)=>{
        const ab=`${a}${b}`;
        const ba = `${b}${a}`;
        if(ab>ba){
            return -1;
        }
        else if(ab<ba){
            return 1;
        }
        return 0;
    })
    console.log(nums)
}

getBigNum(nums)